home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17906 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  778 b 

  1. Path: nntp1.best.com!usenet
  2. From: javaprog@best.com (John Lockwood)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: File I/O using fwrite()
  5. Date: Thu, 18 Apr 1996 01:50:21 GMT
  6. Organization: Best Internet Communications
  7. Message-ID: <4l475g$htc@nntp1.best.com>
  8. References: <31758D70.1D38@vixa.voyager.net>
  9. NNTP-Posting-Host: javaprog.vip.best.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. David Wade <dwade@vixa.voyager.net> wrote:
  13.  
  14. >  For some reason, no matter what I do the information 
  15. >is always written at the end of the file instead of where I want it to 
  16. >replace...  
  17.  
  18. >        f=_fsopen(".\\data\\weapons.dat", "ab+", SH_DENYNONE);
  19.  
  20. The "a" in "ab+" stands for "append".  Get rid of it.
  21.  
  22.  
  23. John
  24. Regards,
  25.  
  26.  
  27.  
  28. John Lockwood
  29. john@wwg.com
  30. javaprog@best.com
  31. http://www.best.com/~javaprog
  32.  
  33.